package cn.t11.dm.user.service.impl;

import cn.t11.dm.user.entity.DmUser;
import cn.t11.dm.user.mapper.DmUserMapper;
import cn.t11.dm.user.service.IDmUserService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户表 服务实现类
 * </p>
 *
 * @author t11
 * @since 2020-01-14
 */
@Service
public class IDmUserServiceImpl implements IDmUserService{

    @Autowired
    private DmUserMapper dmUserMapper;

    @Override
    public DmUser getDmUserBy(DmUser dmUser) {
        QueryWrapper<DmUser> queryWrapper = new QueryWrapper<>(dmUser);
        DmUser user = dmUserMapper.selectOne(queryWrapper);
        return user;
    }
}
